<titlemenu></titlemenu>
<div class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <div class="card">
            <form class="form-horizontal" role="form" id="dzzfcform"
                  name="dzzfcform" ng-submit="save(dzzfcform.$valid)" novalidate>
                <div class="dj-formtable">
                    <table class="dj-table dj-table3">
                    <tr>
                        <th>所属党组织<span style="color:red;">*</span></th>
                        <td>
                            <div class="input-group input-group-search"
                                 title="选择党组织" ng-click="selectParty()">
                                <input name="dzzmc" type="text" ng-model="dataModel.dzzmc"
                                       class="form-control" ng-required="true"
                                       ng-disabled="true"/>
                                <span class="input-group-addon"><i class="material-icons">search</i></span>
                            </div>
                            <span ng-show="this.dzzfcform.partyname.$invalid &&  this.dzzfcform.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th>主题名称<span style="color:red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.dzzfcform.ztmc.$invalid &&  this.dzzfcform.$submitted}">
                            <input type="text" name="ztmc" ng-model="dataModel.ztmc"
                                   autocomplete="off" autoclose="true"
                                   class="form-control" ng-required="true"/>
                            <span ng-show="this.dzzfcform.ztmc.$invalid &&  this.dzzfcform.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th>类别<span style="color:red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.dzzfcform.fcType.$invalid &&  this.dzzfcform.$submitted}">
                            <select class="form-control show-tick"
                                    ng-model="dataModel.fcType"
                                    ng-options="type.dickey as type.dicvalue for type in fcTypeList"
                                    class="form-control"
                                    name="fcType" ng-required="true">
                                <option value="" selected>--请选择--</option>
                            </select>
                            <span ng-show="this.dzzfcform.fcType.$invalid &&  this.dzzfcform.$submitted"
                                  class="error">必填.</span>
                        </td>
                    </tr>
                    <tr>
                        <th>时间<span style="color:red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.dzzfcform.sj.$invalid &&  this.dzzfcform.$submitted}">
                            <input name="sj" class="form-control"
                                   autocomplete="off" autoclose="true"
                                   data-date-format="yyyy-MM-dd" data-date-type="string"
                                   ng-model="dataModel.sj"
                                   ng-required="true"
                                   placeholder="" bs-datepicker/>
                            <span ng-show="this.dzzfcform.sj.$invalid &&  this.dzzfcform.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th>链接</th>
                        <td>
                            <input type="text" name="lj" ng-model="dataModel.lj"
                                   maxlength="500" autocomplete="off" autoclose="true"
                                   class="form-control" ng-required="true"/>
                        </td>
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <th>简介</th>
                        <td colspan="5">
                            <textarea name="jj" ng-model="dataModel.jj" class="form-control" rows="2"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>内容</th>
                        <td colspan="5">
                            <textarea name="nr" ng-model="dataModel.nr" class="form-control" rows="3"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td colspan="5">
                            <textarea name="remark" ng-model="dataModel.remark" class="form-control" rows="3"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>照片</th>
                        <td colspan="5">
                            <img-component data-filerefid="dataModel.id" data-filetypeid="4"
                                           data-ismulti="true" data-height="80"
                                           data-width="120" data-readonly="false"></img-component>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="form_foot">
                <button type="button" class="btn btn-default" ng-click="pagechange();">取消</button>
                <button type="submit"
                        class="btn btn-primary"
                        ng-click="submitData(this.dzzfcform.$valid)">提交
                </button>
            </div>
        </form>
        </div>
    </div>
</div>

<div ng-if="op==2" class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <div class="card">
            <form role="form" name="dzzfcform" novalidate>
            <div class="dj-formtable">
                <table class="dj-table">
                    <tr>
                        <th>所属党组织</th>
                        <td>
                            {{dataModel.dzzmc}}
                        </td>
                        <th>主题名称</th>
                        <td>
                            {{dataModel.ztmc}}
                        </td>
                    </tr>
                    <tr>
                        <th>类别</th>
                        <td>
                            {{dataModel.fctypename}}
                        </td>
                        <th>时间</th>
                        <td>
                            {{dataModel.sj }}
                        </td>
                    </tr>
                    <tr>
                        <th>链接</th>
                        <td>
                            {{dataModel.lj}}
                        </td>
                        <th colspan="2"></th>
                    </tr>
                    <tr>
                        <th>简介</th>
                        <td colspan="5">
                            {{dataModel.jj}}
                        </td>
                    </tr>
                    <tr>
                        <th>内容</th>
                        <td colspan="5">
                            {{dataModel.nr}}
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td colspan="5">
                            {{dataModel.remark}}
                        </td>
                    </tr>
                    <tr>
                        <th>图片</th>
                        <td colspan="5">
                            <img-component data-filerefid="it.id" data-filetypeid="4"
                                           data-ismulti="true" data-height="80"
                                           data-width="120" data-readonly="true"></img-component>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="form_foot">
                <button type="button" class="btn btn-default" ng-click="pagechange();">取消</button>
            </div>
        </form>
        </div>
    </div>
</div>
